package com.example.goods.service;

import com.example.common.api.ResultUtil;
import com.example.goods.model.vo.GoodsVO;

public interface IGoodsService {

    ResultUtil createGoods(GoodsVO goodsVO);

    ResultUtil getGoodsByPage(int pageIndex, int pageSize, GoodsVO goodsVO);

    ResultUtil getGoodsByClassify(int pageIndex, int pageSize, String classifyName);

    ResultUtil updateGoodsById(GoodsVO goodsVO);

    /**
     * 根据商品ID，获取商品
     * */
    ResultUtil getGoodsById(Long id);
}
